<template>
<div class="outter_bg">
  <div class="inner_bg">
    <el-menu :default-active="activeIndex"
             class="el-menu-demo" background-color="#005389" text-color="#fff"
             mode="horizontal" @select="handleSelect" router>
      <el-menu-item index="index">首页</el-menu-item>
      <el-menu-item index="dynamic">实验室动态</el-menu-item>
      <el-menu-item index="guide">办事指南</el-menu-item>
      <el-menu-item index="info_public">信息公开</el-menu-item>
      <el-menu-item index="notice">通知公告</el-menu-item>
      <el-menu-item index="about">机构概况</el-menu-item>
      <el-menu-item index="construction">制度建设</el-menu-item>
      <el-menu-item index="learn" style="background: none">学习普及</el-menu-item>
    </el-menu>

11111
  </div>
</div>
</template>

<script>
export default {
  name: 'middle',
  data(){
    return {
      activeIndex:''
    }
  },
  methods:{
    handleSelect(){
    }
  }
}
</script>

<style scoped>
.outter_bg{
  width: 1220px;
  padding: 20px 150px;
}
.inner_bg{
  width: 1200px;
  background-color: #fff;
  border-radius: 5px;
  text-align: center;
  padding: 10px;
}
.el-menu{
  width: 1160px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
}
.el-menu-item{
  border-radius: 5px;
  font-size: 20px;
  width: 145px;
  background: url('../../assets/images/nav_line.png') no-repeat center right;
}
</style>
